﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TalentPools.Model;
using TalentPools.DAL;

namespace TalentPools.BLL
{
    public class invite_infoManager
    {
        #region 添加招聘信息
        /// <summary>
        /// 添加招聘信息
        /// </summary>
        /// <param name="invite"></param>
        /// <returns></returns>
        public bool InsertInvite(invite_info invite)
        {
            return new invite_infoService().InsertInvite(invite);
        }
        #endregion

        #region 修改招聘信息
        /// <summary>
        /// 修改招聘信息
        /// </summary>
        /// <param name="invite"></param>
        /// <returns></returns>
        public bool UpdateInvite(invite_info invite)
        {
            return new invite_infoService().UpdateInvite(invite);
        }

        #endregion

        #region 获取招聘信息
        /// <summary>
        /// 获取招聘信息
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        public DataSet GetInviteDS(string username)
        {
            return new invite_infoService().GetInviteDS(username);
        }

        /// <summary>
        /// 获取招聘信息
        /// </summary>
        /// <param name="companyName"></param>
        /// <returns></returns>
        public List<invite_info> GetInviteList(string companyName)
        {
            return new invite_infoService().GetInviteList(companyName);
        }
        /// <summary>
        /// 获取招聘信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public invite_info GetInviteObj(int id)
        {
            return new invite_infoService().GetInviteObj(id);
        }
        #endregion

        #region 删除招聘信息
        /// <summary>
        /// 删除招聘信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DeleteInvite(int id)
        {
            return new invite_infoService().DeleteInvite(id);
        }
        #endregion
    }
}
